package com.kevin.chat.entity;

import com.kevin.chat.framework.core.entity.BaseEntity;

import java.util.List;

/*
 * 用户实体类
 * @author Kevin
 * @date 2021/1/13 14:41
 *
 */
public class UserEntity extends BaseEntity {


    // 用户ID
    private int userId;
    // 登录名称
    private String loginName;
    // 姓名
    private String name;
    // 昵称
    private String nickname;
    // 用户组
    private List<UserGroupEntity> userGroupList;
    // 好友列表
    private List<UserEntity> friendList;
    // 群组
    private List<ChatGroupEntity> chatGroupList;

    public UserEntity() {

    }

    public UserEntity(int userId, String loginName, String name, String nickname) {
        this.userId = userId;
        this.loginName = loginName;
        this.name = name;
        this.nickname = nickname;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public List<UserGroupEntity> getUserGroupList() {
        return userGroupList;
    }

    public void setUserGroupList(List<UserGroupEntity> userGroupList) {
        this.userGroupList = userGroupList;
    }

    public List<UserEntity> getFriendList() {
        return friendList;
    }

    public void setFriendList(List<UserEntity> friendList) {
        this.friendList = friendList;
    }

    public List<ChatGroupEntity> getChatGroupList() {
        return chatGroupList;
    }

    public void setChatGroupList(List<ChatGroupEntity> chatGroupList) {
        this.chatGroupList = chatGroupList;
    }
}
